package com.fan.dao;

import com.fan.pojo.User1;
import com.fan.utils.Mybatis1;
import org.apache.ibatis.session.SqlSession;
import org.junit.Test;

import java.util.List;

/**
 * およそ神
 */
public class UserDaoTest1 {
   @Test
   public void test() {
      SqlSession sqlSession = Mybatis1.getSqlSession();
      UserMapper1 mapper = sqlSession.getMapper(UserMapper1.class);
      List<User1> userList = mapper.getUserList();
      for (User1 user1 : userList) {
         System.out.println(user1);
      }
      sqlSession.close();
   }
}
